package sunwin.yoms.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import sunwin.yoms.domain.person.UserDomain;

import java.util.Date;
import java.util.List;

/**
 * Created by mt on 2015/7/24.
 */
@Repository
public interface UserDao extends DaoBase<UserDomain> {
    //按创建日期查找用户
    List<UserDomain> getDomainCollectionExtend(
            @Param("domain") UserDomain domain,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime);

    List<UserDomain> getUsersByRole(@Param("roleValue") long roleValue);

    String getDomainByUserLoginName(String userLoginName);
}